/**
 * 
 */
package com.mvc.service.healthmanager;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.mvc.model.healthmanager.archive.BloodOxygen;
import com.mvc.model.healthmanager.archive.WeightHeight;

/**
 * @author qingjie
 *
 */
public interface BloodOxygenServiceI {
	
	/**
	 * 根据不同条件获取血氧集合 hibernate
	 * @param params
	 * @return
	 */
	public List<BloodOxygen> findBloodOxygens(Map<String, Object> params);
	/**
	 * 根据个人id,获取最新血氧记录
	 * @author qingjie
	 * @param personId
	 * @return
	 * Date:2015-11-15
	 */
	public BloodOxygen getNewBloodOxygen(BloodOxygen bo);
	
	/**
	 * 根据条件,获取所有血压记录
	 * @author qingjie
	 * @param bOxygen
	 * @return
	 * Date:2015-11-15
	 */
	public List<BloodOxygen> getBloodOxygen(BloodOxygen bOxygen);
	
	/**
	 * 获取json数据，根据个人id
	 * @author qingjie
	 * @return
	 * Date:2015-11-15
	 */
	public String getJsonData(String personId);
	
	public List<BloodOxygen> findBloodOxygen(Map<String, Object> params,String order);

	/**
	 * 保存或更新血氧
	 * @param bo
	 * @return
	 */
	public BloodOxygen saveOrUpdate(BloodOxygen bo);
}
